目录切换控制
{
限制登录用户访问其他目录，改之前登录显示的路径比如是~ ，改之后则是 /。 

chroot_list_enable
       If  activated,  you may provide a list of local users who are placed in a chroot() jail in their home directory upon
       login. The meaning is slightly different if chroot_local_user is set to YES. In this case, the list becomes  a  list
       of  users  which  are  NOT  to  be  placed  in  a  chroot()  jail.   By  default,  the  file containing this list is
       /etc/vsftpd.chroot_list, but you may override this with the chroot_list_file setting.

       Default: NO

chroot_local_user
       If set to YES, local users will be (by default) placed in a chroot() jail  in  their  home  directory  after  login.
       Warning:  This  option  has  security implications, especially if the users have upload permission, or shell access.
       Only enable if you know what you are doing.  Note that these security implications are  not  vsftpd  specific.  They
       apply to all FTP daemons which offer to put local users in chroot() jails.

       Default: NO


将用户(一般指虚拟用户)限制在自家目录修改配置文件中,
这样用户就只能访问自己家的目录了:


限制所有，开放特定
chroot_local_user=YES               
chroot_list_enable=YES              
chroot_list_file=/etc/vsftpd/chroot_list    
在/etc/vsftpd.chroot_list文件中列出的用户，可以切换到其他目录；
未在文件中列出的用户，不能切换到其他目录。


开放所有，限制特定
chroot_local_user=NO
chroot_list_enable=YES  
chroot_list_file=/etc/vsftpd/chroot_list        
在/etc/vsftpd.chroot_list文件中列出的用户，不能切换到其他目录；
未在文件中列出的用户，可以切换到其他目录。


禁止所有用户进行目录切换
chroot_local_user=YES
chroot_list_enable=NO
chroot_list_file=/etc/vsftpd/chroot_list


所有的用户均可以切换到其他目录。
chroot_local_user=NO
chroot_list_enable=NO
chroot_list_file=/etc/vsftpd/chroot_list
}


用户访问控制
{
限制特定，开放一切
userlist_enable=YES
userlist_deny=YES
userlist_file=/etc/vsftpd.user_list


限制一切，开放特定
userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd.user_list

}